#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: xiyoulaoyuanjia
#         xiyoulaoyuanjia@gmail.com

import os

handlers = []
modules = []
#ui_modules = []
#ui_methods = []


for file in os.listdir(os.path.dirname(__file__)):
    if not file.endswith(".py"):
        continue
    if file == '__init__.py':
        continue
    modules.append(file[:-3])
             

for module in modules:
    module = __import__('%s.%s' % (__package__,module), fromlist = ["handlers"])
    if hasattr(module,"handlers"):
        handlers.extend(module.handlers)


